package com.yfp.client.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @Description: 营业点
 * 
 * @CreateDate: 2024/7/17 10:57
 * @UpdateUser: 
 * @UpdateDate: 2024/7/17 10:57
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
@Data
@ApiModel("营业点")
public class OutletVO {

    @Schema(description = "城市")
    private String cityName;
    @Schema(description = "区域ID")
    private String areaId;

    @Schema(description = "子营业点")
    private List<Child> childs;

    @Data
    public static class Child {
        public Child(String positionId, String positionName, String machineId, String machineName){
            this.setMachineId(machineId);
            this.setPositionId(positionId);
            this.setMachineName(machineName);
            this.setPositionName(positionName);
        }
        @Schema(description = "点位ID")
        private String positionId;
        @Schema(description = "点位名称")
        private String positionName;

        @Schema(description = "设备名称")
        private String machineName;

        @Schema(description = "设备ID")
        private String machineId;
    }
}